home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form Form1
- Caption = "Visual Basic VBX in Borland Pascal"
- ClientHeight = 1605
- ClientLeft = 1455
- ClientTop = 2160
- ClientWidth = 6105
- Height = 2010
- Left = 1395
- LinkTopic = "Form1"
- ScaleHeight = 1605
- ScaleWidth = 6105
- Top = 1815
- Width = 6225
- Begin TextBox Text2
- Height = 375
- Left = 3360
- TabIndex = 7
- Text = "Text2"
- Top = 960
- Width = 1335
- End
- Begin PasPushButton cmdBtn
- AutoBeep = 0 'False
- Caption = "Pascal #4"
- Height = 255
- Index = 3
- Left = 4800
- TabIndex = 6
- Top = 1200
- Width = 1095
- End
- Begin PasPushButton cmdBtn
- AutoBeep = 0 'False
- Caption = "Pascal #3"
- Height = 255
- Index = 2
- Left = 4800
- TabIndex = 5
- Top = 840
- Width = 1095
- End
- Begin PasPushButton cmdBtn
- AutoBeep = 0 'False
- Caption = "Pascal #2"
- Height = 255
- Index = 1
- Left = 4800
- TabIndex = 4
- Top = 480
- Width = 1095
- End
- Begin PasPushButton cmdBtn
- AutoBeep = 0 'False
- Caption = "Pascal #1"
- Height = 255
- Index = 0
- Left = 4800
- TabIndex = 3
- Top = 120
- Width = 1095
- End
- Begin PasPushButton PasPush2
- AutoBeep = 0 'False
- Caption = "E&xit"
- Height = 375
- Left = 720
- TabIndex = 2
- Top = 960
- Width = 1575
- End
- Begin PasPushButton PasPush1
- AutoBeep = 0 'False
- Caption = "&Test me"
- Height = 375
- Left = 720
- TabIndex = 1
- Top = 120
- Width = 1575
- End
- Begin TextBox Text1
- Height = 375
- Left = 2400
- TabIndex = 0
- Text = "Text1"
- Top = 120
- Width = 1575
- End
- Option Explicit
- Sub cmdBtn_Click (Index As Integer, ButtonCaption As String)
- Text1 = cmdBtn(Index).Caption
- ' the next line does the same as the first
- ' except it uses the passed parameter
- Text2 = ButtonCaption
- End Sub
- Sub PasPush1_Click (ButtonCaption As String)
- Text1 = PasPush1.Caption
- End Sub
- Sub PasPush2_Click (ButtonCaption As String)
- Unload Me
- End
- End Sub
-